package com.hnx.admin.system.domain.vo.menu;

import com.hnx.admin.api.service.menu.MenuCacheAPI;
import lombok.Data;
import lombok.NoArgsConstructor;

/*
项目名称： core
创 建 人: 倔强的头发
创建日期： 2025/6/4   19:44:35 
描   述：
*/
@Data
@NoArgsConstructor
public class MetaVO implements MenuCacheAPI {
    public MetaVO(String title, String icon)
    {
        this.title = title;
        this.icon = icon;
    }

    public MetaVO(String title, String icon, boolean noCache)
    {
        this.title = title;
        this.icon = icon;
        this.noCache = noCache;
    }

    public MetaVO(String title, String icon, String link)
    {
        this.title = title;
        this.icon = icon;
        this.link = link;
    }

    public MetaVO(String title, String icon, boolean noCache, String link)
    {
        this.title = title;
        this.icon = icon;
        this.noCache = noCache;
        if (ishttp(link))
        {
            this.link = link;
        }
    }
    private String title;
    private String icon;
    private boolean noCache;
    private String link;
}
